package game.source.util;

import java.awt.Point;
import java.util.ArrayList;

/**
 *TrackerPlayer:
 *	Segue a posição do player e manda os inimgos o segirem
 */
public class TrackerPlayer{
	private ArrayList<TrackerListener> enemy;
	public TrackerPlayer(){
		this.enemy = new ArrayList<TrackerListener>();
	}
	public void add(TrackerListener enemy){
		this.enemy.add(enemy);
	}
	public void remove(int pos){
		this.enemy.remove(pos);
	}
	public void remove(TrackerListener enemy){
		this.enemy.remove(enemy);
	}
	public void updatePlayerPos(Point position){
		for(TrackerListener enemy: this.enemy){
			enemy.move(position);
		}
	}
}
